<?php
class Ciusubject extends AppModel {
	var $name = 'Ciusubject';
	//The Associations below have been created with all possible keys, those that are not needed can be removed

	var $belongsTo = array(
		'Ciulanguage' => array(
			'className' => 'Ciulanguage',
			'foreignKey' => 'ciulanguage_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'Ciuplan' => array(
			'className' => 'Ciuplan',
			'foreignKey' => 'ciuplan_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'Ciusubject2' => array(
			'className' => 'Ciusubject',
			'foreignKey' => 'prerequisite',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		)

	);

	var $hasMany = array(
		'CiucourseCiustudent' => array(
			'className' => 'CiucourseCiustudent',
			'foreignKey' => 'ciusubject_id',
			'dependent' => false,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'exclusive' => '',
			'finderQuery' => '',
			'counterQuery' => ''
		),
		'Ciucourse' => array(
			'className' => 'Ciucourse',
			'foreignKey' => 'ciusubject_id',
			'dependent' => false,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'exclusive' => '',
			'finderQuery' => '',
			'counterQuery' => ''
		),		
		'CiuexamCiuuser' => array(
			'className' => 'CiuexamCiuuser',
			'foreignKey' => 'ciusubject_id',
			'dependent' => false,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'exclusive' => '',
			'finderQuery' => '',
			'counterQuery' => ''
		)
	);

//
//	var $hasAndBelongsToMany = array(
//		'Ciuplan' => array(
//			'className' => 'Ciuplan',
//			'joinTable' => 'ciuplan_ciusubjects',
//			'foreignKey' => 'ciusubject_id',
//			'associationForeignKey' => 'ciuplan_id',
//			'unique' => true,
//			'conditions' => '',
//			'fields' => '',
//			'order' => '',
//			'limit' => '',
//			'offset' => '',
//			'finderQuery' => '',
//			'deleteQuery' => '',
//			'insertQuery' => ''
//		)
//	);

}
